<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .menu{
            overflow: hidden;
            width: 100%;
            height: 44px;
            line-height: 44px;
        }
        li{
            list-style-type: none;
            float: left;
            width: 20%;
            text-align: center;
            background-color: pink;
        }
        a{
            text-decoration: none;
            color: purple;
            font-size: 20px;
        }
        @media screen and (max-width: 480px){
            .menu{
                display: none;
                /*隐藏显示*/
            }
        }
    </style>
</head>
<body>
<ul class="menu">
    <li><a href="#">菜单项1</a></li>
    <li><a href="#">菜单项2</a></li>
    <li><a href="#">菜单项3</a></li>
    <li><a href="#">菜单项4</a></li>
    <li><a href="#">菜单项5</a></li>
</ul>
</body>
</html>